﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;

//using FluentNHibernate.Mapping;

//namespace ZQNB.Data
//{
//    public class Company : ClassMap<Company>
//    {
//        public virtual IList<Employee> Employees { get; set; }
//    }

//    public class Employee : ClassMap<Employee>
//    {
//        public virtual Company Company { get; set; }
//    }

//    public class CompanyMap : ClassMap<Company>
//    {
//        public CompanyMap()
//        {
//            Table("Lib_Demo_Company");
//            HasMany(x => x.Employees).KeyNullable();
//        }
//    }
//    public class EmployeeMap : ClassMap<Employee>
//    {
//        public EmployeeMap()
//        {
//            Table("Lib_Demo_Employee");
//            References(x => x.Company);
//        }
//    }

//}
